Title

Subtitle

Description
Author
Affiliation
Published

2023-10-13

Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

Code

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

Code
1 + 1
[1] 2

You can add options to executable code like this (the option #| echo:false is used at the top of the code chunk).

The echo: false option disables the printing of code (only output is displayed), so the chunk is not visible.

[1] 4

Packages

Snippets of code using different languages can be included. Here we make a set of R packages available for usage in R code chunks:

Packages
pkgs <- "
DT bslib leaflet plotly htmltools dplyr purrr
"

import <- function(x)
 x |> trimws() |> strsplit("\\s+") |> unlist() |>
  lapply(function(x) library(x, character.only = TRUE)) |>
  invisible()

pkgs |> import()

Plots

We can include static or dynamic plots, for example using ggplot.

This is an example of a static plot using KTH graphical profile colors from ktheme.

This is an example of a interactive variant of the same plot.

Embeddable Style Assets HTML/SVG

Logo, favicon, webfonts for KTH are available through the ktheme package. This section shows usage.

Logos

Scalable vector graphics files for the KTH logo can be embedded using ktheme::kthb_b64_logo_svg().

Increasing the zoom, the logos will still look good (SVG means no raster image format).